package artifacts;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


public class workerInfo extends JDialog {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					workerInfo frame = new workerInfo();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public workerInfo() {
		setTitle("Worker Information");
		setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 270, 446);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblName = new JLabel("Name:");
		lblName.setBounds(23, 34, 46, 14);
		contentPane.add(lblName);
		
		JLabel lblDomain = new JLabel("Domain:");
		lblDomain.setBounds(23, 61, 46, 14);
		contentPane.add(lblDomain);
		
		JLabel lblContactInformation = new JLabel("Contact Information:");
		lblContactInformation.setBounds(23, 88, 111, 14);
		contentPane.add(lblContactInformation);
		
		JLabel lblActiveNow = new JLabel("Active now:");
		lblActiveNow.setBounds(23, 115, 93, 14);
		contentPane.add(lblActiveNow);
		
		JLabel lblCreatedDocuments = new JLabel("Created documents:");
		lblCreatedDocuments.setBounds(23, 141, 136, 14);
		contentPane.add(lblCreatedDocuments);
		
		JList list = new JList();
		list.setBounds(23, 158, 200, 65);
		contentPane.add(list);
		
		JLabel lblModificatedDocuments = new JLabel("Modificated Documents:");
		lblModificatedDocuments.setBounds(23, 234, 178, 14);
		contentPane.add(lblModificatedDocuments);
		
		JList list_1 = new JList();
		list_1.setBounds(23, 253, 200, 65);
		contentPane.add(list_1);
		
		JButton btnChat = new JButton("Chat");
		btnChat.setBounds(23, 329, 89, 23);
		contentPane.add(btnChat);
		
		JButton btnSendMail = new JButton("Send Mail");
		btnSendMail.setBounds(134, 329, 89, 23);
		contentPane.add(btnSendMail);
		
		JButton btnCerrar = new JButton("Close");
		btnCerrar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				workerInfo.this.dispose();
			}
		});
		btnCerrar.setBounds(83, 374, 89, 23);
		contentPane.add(btnCerrar);
		
		textField = new JTextField();
		textField.setBounds(134, 31, 86, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				infoDominio info = new infoDominio();
				info.show();
			}
		});
		textField_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				infoDominio info = new infoDominio();
				info.show();
			}
		});
		textField_1.setColumns(10);
		textField_1.setBounds(134, 58, 86, 20);
		contentPane.add(textField_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(134, 85, 86, 20);
		contentPane.add(textField_2);
		
		textField_3 = new JTextField();
		textField_3.setColumns(10);
		textField_3.setBounds(134, 112, 86, 20);
		contentPane.add(textField_3);
	}

}
